package com.qf.controller;

import com.qf.ex.CustomException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author YDW
 * projectName:project2202_3
 * time:2022/5/12 16:36
 * description:
 */
@Controller
public class TestController {

    @RequestMapping("/echo")
    public String echo(){
//        System.out.println(1/0);
        if(1==1){
            throw new CustomException("自定义异常");
        }
        return "/success.jsp";
    }
}
